package design.proxy.three;

import design.proxy.GoodStudent;

/**
 * Cglib代理，可代理无接口类
 *
 * @Author: zhenzhong.wang
 * @Time: 2018/4/10 10:46
 */
public class Main {
  public static void main(String[] args) {

    GoodStudent goodStudent = new GoodStudent();
    CGlibProxyFactory proxy = new CGlibProxyFactory(goodStudent);
    GoodStudent proxyGoodStudent = (GoodStudent) proxy.getProxyInstance();
    proxyGoodStudent.play();
  }
}
